//tacticsTop
function changeAnalysesFormDisplay(){
	var formLabel = $("#analysesTopFormTitle").text();
	if($("#analysesForm").css("display") == "none"){
		$("#analysesForm").css("display","");
		$("#analysesTopFormTitle").text(formLabel.replace("+","-"));
	}
	else{
		$("#analysesForm").css("display","none");
		$("#analysesTopFormTitle").text(formLabel.replace("-","+"));
	}
}


function switchSearchForm(){
	var type = $('#searchType option:selected').text()
	if(type == 'キーワード検索'){
		$("#searchKeywordForm").css("display","");
		$("#searchCategoryList").css("display","none");
	}else if(type == 'タグ検索'){
		$("#searchKeywordForm").css("display","");
		$("#searchCategoryList").css("display","none");
	}else if(type == 'カテゴリ検索'){
		$("#searchKeywordForm").css("display","none");
		$("#searchKeywordForm").text("");
		$("#searchCategoryList").css("display","");
	}
}


function showSearchResultTable(){
	$("#searchKeywordForm").css("display","searchResultTable");
}

$(function(){
	if($("#formExist").css("color") != "rgb(0,0,0)" && $("#formExist").css("color") != "rgb(0, 0, 0)" && $("#formExist").css("color") != "#000000")
		$("#analysesForm").css("display","none");


	if($("#searchResultExist").css("color") != "rgb(0,0,0)" && $("#searchResultExist").css("color") != "rgb(0, 0, 0)" && $("#searchResultExist").css("color") != "#000000"){
		$("#searchResultTable").css("display","");
	}

	switchSearchForm();

	setScroll();
	resetlocate();

});
